import { config as dotenvInit } from 'dotenv';

dotenvInit();

export const config = {
    database: {
        type: 'postgres',
        host: process.env.DATABASE_HOST || 'localhost',
        port: Number(process.env.DATABASE_PORT) || 5432,
        username: process.env.DATABASE_USER || 'postgres',
        password: process.env.DATABASE_PASSWORD || '',
        database: process.env.DATABASE_NAME || 'notificationbotdb',
        synchronize: true,
        autoLoadEntities: true,
        logging: false,
    },
    server: {
        port: process.env.SERVER_PORT || 8080,
    },
    debugMode: Boolean(Number(process.env.DEBUG_MODE)) || false,
    natural: {
        url: process.env.NATURAL_URL || '',
        appId: process.env.X_APP_ID || '',
        appKey: process.env.X_APP_KEY || '',
    },
};
